<!--<?php print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$db_charset" />
<title>$subject$forumtitle$db_bbstitle - Powered by PHPWind.net</title>
<meta name="generator" content="PHPWind $wind_version" />
<meta name="keywords" content="$db_metakeyword" />
<meta name="description" content="$db_metadescrip" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel='archives' title='$db_bbsname' href='$db_bbsurl/simple' />
<!--
EOT;
if($fid){print <<<EOT
-->
<link rel="alternate" type="application/rss+xml" title="RSS" href="$db_bbsurl/rss.php?fid=$fid" />
<!--
EOT;
}print <<<EOT
-->
<base id="headbase" href="$db_bbsurl/" />
<link rel="stylesheet" type="text/css" href="$imgpath/$stylepath/wind-reset.css" />

<!--
EOT;
@include Pcv($css_path);
if($pwModeCss){print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$pwModeCss" />
<!--
EOT;
}print <<<EOT
-->
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<script language="JavaScript">
var agt = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_gecko= (navigator.product == "Gecko");
var imgpath = '$imgpath';
var verifyhash = '$verifyhash';
var modeimg = '$pwModeImg';
var modeBase = '$baseUrl';
var winduid = '$winduid';
var windid	= '$windid';
var groupid	= '$groupid';
var gIsPost = true;
if (location.href.indexOf('/simple/') != -1) {
	getObj('headbase').href = location.href.substr(0,location.href.indexOf('/simple/')+1);
} else if (location.href.indexOf('.html')!=-1) {
	var base = location.href.replace(/^(http(s)?:\/\/(.*?)\/)[^\/]*\/[0-9]+\/[0-9]{4,6}\/[0-9]+\.html$/i,'$1');
	if (base != location.href) {
		getObj('headbase').href = base;
	}
}
</script>
</head>
<body onkeydown="try{keyCodes(event);}catch(e){}">
<!--
EOT;
if($pwForumList){print <<<EOT
-->
<style>
.menu .menu-hidden{width:16px;height:16px;float:right;background:url($imgpath/close.gif) no-repeat;}
/*底部弹出框样式*/
.menu-thread-bottom .menu-post,.menu-post-bottom .menu-post{ border:none;}
.menu-thread-bottom .menu-b,.menu-post-bottom .menu-b{ background:$forumcolorone}
.menu-post-bottom dt a{color:#659B28; cursor:text}
.menu-post-bottom dt a:hover{ text-decoration:none}
/* popout forum list*/
.forum-list-popout { max-height:400px;_height:400px; overflow:auto}
.forum-list-popout a:hover{ color:#659B28}
.forum-list-popout dl{border-bottom:1px dashed $tdcolor; padding:5px 0;}
.forum-list-popout dt{font-weight:700;padding:0 0 2px}
.forum-list-popout dt a{display:inline}
.forum-list-popout dd a{width:13em;padding:2px 0;margin-left:1em;float:left;display:inline;color:$headfonttwo}
</style>
<div id="menu_forumlist" class="menu" style="display:none;">
	<div class="menu-post" style="width:700px;">
		<div class="menu-b">
			<div class="h" style="cursor:pointer" onclick="try{pw_bottom.hiddenTab();read.close();}catch(e){read.close();}">
					<span class="menu-hidden aimg">隐藏</span>
					<span id="title_forumlist">快速浏览</span>
			</div>
			<div class="forum-list-popout">
<!--
EOT;
foreach($pwForumList as $key=>$value){print <<<EOT
-->
			<dl class="cc">
				<dt><a href="index.php?cateid=$key">$value[name]</a><dt>
				<dd class="cc">
<!--
EOT;
foreach($value['child'] as $k=>$v){print <<<EOT
-->
					<a href="thread.php?fid=$k" onclick="return pwForumList(true,gIsPost,$k);"><span>$v</span></a><!--
EOT;
}print <<<EOT
-->
				</dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
</div>
</div>
<!--
EOT;
}if ($groupid != 'guest' && $groupid != '' && $GLOBALS['db_toolbar']){print <<<EOT
-->
<!--[if IE 6]>
<style>
html,body{overflow:hidden;height:100%;}
.fixed {right:0;left:0;bottom:0;position: fixed;z-index:200}
</style>
<div id="upPanel" style="overflow:auto;overflow-y:scroll;width:100%;height:100%;position:absolute;">
<div id="upPanelWrap" class="cc">
<![endif]-->
<!--
EOT;
}print <<<EOT
-->
$msgsound

<div id="header" class="cc">
	<div class="head-wrap cc">
<!--
EOT;
if($header_ad){print <<<EOT
-->
		<div id="topbar">
			<div id="nav-top" class="cc"><ul class="fr">
				$db_head
			</ul></div>
		</div>
		<div id="head">
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td><a href="$db_bbsurl" class="fl"><img src="$imgpath/$stylepath/logo.png"/></a></td>
					<td id="banner" align="right">
						$header_ad
					</td>
				</tr>
			</table>
		</div>
<!--
EOT;
}else{print <<<EOT
-->
		<div id="head" class="cc"><a href="$db_bbsurl" class="logo fl"><img src="$imgpath/$stylepath/logo.png"/></a>
			<div id="nav-operate" align="center">
				<table cellpadding="0" cellspacing="0" align="center" height="70" class="tac">
					<tr>
<!--
EOT;
$i = 0;$tmpHeadNavMore='';
foreach($db_headnav as $value) {
if ($i++ > 6) {
	$tmpHeadNavMore .= $value[html];
} else {
print <<<EOT
-->
						<td>
<!--
EOT;
if($value['image']){print <<<EOT
-->
							$value[image]
<!--
EOT;
}print <<<EOT
-->
							<p>$value[html]</p></td>
<!--
EOT;
}}if($tmpHeadNavMore){print <<<EOT
-->
						<td><a class="nav-more" onclick="read.open('menu_nav_more','td_nav_more');" style="cursor:pointer;" id="td_nav_more">更多</a></td>
<!--
EOT;
}print <<<EOT
-->
					</tr>
				</table>
<!--
EOT;
if($tmpHeadNavMore){print <<<EOT
-->
				<div id="menu_nav_more" class="menu menu-post" style="display:none;width:15em;">
					<div class="menu-b">$tmpHeadNavMore</div>
				</div>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
<!--
EOT;
}print <<<EOT
-->
	</div>
	<div class="nav-wrap">
		<div id="nav" class="cc pr" style="z-index:999;">
			<div id="nav-user" class="pr cc">
				<table cellpadding="0" cellspacing="0" border="0">
<!--
EOT;
if($groupid=='guest'){
if ($db_ajax & 16) {
$arr_logintypename = array('用户名','UID','Email');
print <<<EOT
-->
					<tr>
						<td><a onclick="showLoginDiv();" title="展开登录框" class="ml b" style="cursor:pointer">登录</a>&nbsp;&nbsp;<a href="$regurl" class="b">注册</a>
							<div id="user-login" class="menu menu-post" style="display:none;">
								<div class="menu-b" style="width:400px;">
									<form action="login.php" name="login_FORM" method="post">
										<input type="hidden" name="jumpurl" value="http://{$pwServer['HTTP_HOST']}{$REQUEST_URI}" />
										<input type="hidden" name="step" value="2" />
										<input type="hidden" name="cktime" value="31536000" />
										<table width="100%" cellpadding="0" cellspacing="0">
											<tr>
												<td class="h" colspan="2"><span class="b fr f14" onclick="read.close();" style="cursor:pointer;" title="关闭">×</span>登录</td>
											</tr>
											<tr class="user-table">
												<td width="30%"><select name="lgt">
<!--
EOT;
if(count($arr_logintype)==1){
$value = current($arr_logintype);
print <<<EOT
-->
														<option value="$value" selected>$arr_logintypename[$value]</option>
<!--
EOT;
}elseif(count($arr_logintype)>1){
$i=1;
foreach($arr_logintype as $value){
$str_checked = $i==1? 'selected':'';
$i++;
print <<<EOT
-->
														<option value="$value" $str_checked>$arr_logintypename[$value]</option>
<!--
EOT;
}print <<<EOT
-->
													</select>
<!--
EOT;
}else{print <<<EOT
-->
													<input type="radio" name="lgt" value="$value" checked />
													<span id="login_$value">用户名</span>
<!--
EOT;
}print <<<EOT
-->
												</td>
												<td class="tal"><input class="input gray" type="text" onfocus="checkinput(this);" onblur="if(getObj('logintab')) getObj('logintab').style.display='';checkinput(this,'输入用户名');" style="width:150px" name="pwuser" id="pwuser" value="输入用户名" tabindex="1" /></td>
											</tr>
											<tr class="user-table">
												<td>密  码</td>
												<td class="tal"><input class="input" type="password" name="pwpwd" style="width:150px;" tabindex="2" /></td>
											</tr>
<!--
EOT;
if($db_gdcheck & 2){print <<<EOT
-->
											<tr class="user-table">
												<td>认证码</td>
												<td class="tal">
													<input class="input" onfocus="showCK();" type="text" name="gdcode" size="5" tabindex="3"  />
													<img id="ckcode" style="cursor:pointer;display:none" onclick="this.src='ck.php?nowtime='+new Date().getTime();" alt="看不清楚，换一张" />
												</td>
											</tr>
<!--
EOT;
}if($db_ifsafecv){print <<<EOT
-->
											<tr class="user-table">
												<td>安全问题</td>
												<td class="tal">
													<select name="question" onchange="showcustomquest_l(this.value)" tabindex="4">
														<option value="0">无安全问题</option>
	<option value="1">我爸爸的出生地</option>
	<option value="2">我妈妈的出生地</option>
	<option value="3">我的小学校名</option>
	<option value="4">我的中学校名</option>
	<option value="5">我最喜欢的运动</option>
	<option value="6">我最喜欢的歌曲</option>
	<option value="7">我最喜欢的电影</option>
	<option value="8" >我最喜欢的颜色</option>
	<option value="-1">自定义问题</option>
													</select>
													<input id="customquest_l" type="text" style="display:none" name="customquest" class="input" size="10" tabindex="5" />
												</td>
											</tr>
											<tr class="user-table">
												<td>您的答案</td>
												<td class="tal"><input name="answer" type="text" class="input" size="25" tabindex="6" /></td>
											</tr>
<!--
EOT;
}if($qcheck){print <<<EOT
-->
											<tr class="user-table">
												<td>验证问答</td>
												<td class="tal">问题：{$db_question[$qkey]}<br />正确答案：{$db_answer[$qkey]}<br />
													<input class="input" name="qanswer" size="25" tabindex="7" />
													<input type="hidden" name="qkey" value="$qkey" />
												</td>
											</tr>
<!--
EOT;
}print <<<EOT
-->
											<tr class="user-table">
												<td></td>
												<td class="tal"><input class="btn fl" type="submit" value=" 登 录 " tabindex="8" />
													<a href="sendpwd.php" class="fl">找回密码</a></td>
											</tr>
										</table>
									</form>
								</div>
							</div>
						</td>
					</tr>
<script language="JavaScript">
function showcustomquest_l(qid){
	getObj('customquest_l').style.display = qid==-1 ? '' : 'none';
}
function checkinput(obj,val){
	if (obj.className.indexOf('gray')!=-1) {
		obj.value = '';
		obj.className = obj.className.replace('gray', 'black');
	} else if (val && obj.value=='') {
		obj.value = obj.defaultValue = val;
		if (obj.className.indexOf('black') == -1) {
			obj.className += ' gray';
		} else {
			obj.className = obj.className.replace('black', 'gray');
		}
	}
}
var mt;
function showLoginDiv(){
	mt = setTimeout('read.open(\'user-login\',\'show-login\',2,26);getObj(\'pwuser\').focus();',200);
	document.onmousedown = function (e) {
		var o = is_ie ? window.event.srcElement : e.target;
		if (!issrc(o)) {
			read.close();
			document.onmousedown = '';
		}
	}
}
function issrc(o) {
	var k = 0;
	while (o) {
		if (o == read.menu) {
			return true;
		}
		if (o.tagName.toLowerCase() == 'body' || ++k>10) {
			break;
		}
		o = o.parentNode;
	}
	return false;
}
function showCK(){
	getObj('ckcode').style.display="";
	if (getObj('ckcode').src.indexOf('ck.php') == -1) {
		getObj('ckcode').src = 'ck.php?nowtime=' + new Date().getTime();
	}
}
</script>
<!--
EOT;
} else {print <<<EOT
-->
					<tr>
						<td><a href="login.php" title="登录" class="ml b">登录</a>&nbsp;&nbsp;<a href="$regurl" class="b">注册</a></td>
					</tr>
<!--
EOT;
}} else {print <<<EOT
-->
					<tr>
						<td>
							<div id="userinfo_more" class="fl" style="height:1px;width:1px;overflow:hidden;"></div>
							<a style="cursor:pointer;" onclick="showUserinfo();" id="showUserinfo">
<!--
EOT;
if (GetCookie('hideid') == 1) {print <<<EOT
-->
								<div id="stealth"></div>
								<img src="$faceurl" class="portrait-s fl" id="iconimg" title="隐身"/>
<!--
EOT;
} else {print <<<EOT
-->
								<div id="stealth" class="hide"></div>
								<img src="$faceurl" class="portrait-s fl" id="iconimg" title="在线"/>
<!--
EOT;
}print <<<EOT
-->
							</a>
						</td>
						<td><a href="u.php?action=show" id="td_userinfo_more" class="b"><span>$windid</span></a></td>
						<td valign="top">
<!--
EOT;
if($winddb[newpm]>0 && $_G[maxmsg]>0){print <<<EOT
-->
							<a id="td_msg" class="icon-meg2" href="message.php?type=newmsg" title="有新短消息">有新短消息</a>
<!--
EOT;
} else {print <<<EOT
-->
							<a id="td_msg" class="icon-meg" href="message.php" title="短消息">短消息</a>
<!--
EOT;
}print <<<EOT
-->
                		</td>

<!--
EOT;
if($db_replysitemail && getstatus($winddb['userstatus'],6)){print <<<EOT
-->
							<td><img onclick="sendmsg('pw_ajax.php','action=newrp',this.id)" id="newrp" title="您有新的回复" src="$imgpath/$stylepath/reply-remind.gif" style="cursor:pointer;"></td>
<script language="JavaScript">
function newrp() {
	ajax.guide();
	ajax.send('pw_ajax.php','action=newrp',function(){
		if (ajax.request.responseText.indexOf('<') != -1) {
			read.menu.innerHTML = ajax.request.responseText;
		} else {
			closep();
			getObj('newrp').parentNode.removeChild(getObj('newrp'));
		}
	});
}
</script>
<!--
EOT;
}print <<<EOT
-->
                        <td>
<!--
EOT;
if (!empty($shortcutforum) && $db_toolbar == 0) {print <<<EOT
-->
							<a href="javascript:;" id="id_shortcut" onclick="read.open('menu_shortcut',this.id);">书签</a>
<!--
EOT;
}print <<<EOT
-->
                			<a href="profile.php" title="设置中心">设置</a>&nbsp;

<!--
EOT;
if(CkInArray($windid,$manager) || $SYSTEM['allowadmincp']){print <<<EOT
-->
							<a href="$db_adminfile" target="_blank" class="s3">系统设置</a>
<!--
EOT;
}print <<<EOT
-->
							&nbsp;<a href="$loginouturl">退出</a>
<script language="JavaScript">
function showUserinfo(){
var obj = getObj('menu_userinfo_more');
obj.style.display = '';
document.body.onmouseout = function(e){
var o = getObj('menu_userinfo_more');
e  = is_ie ? window.event : e;
var oe = is_ie ? window.event.srcElement : e.target;
if(oe.parentNode.id == 'showUserinfo') {
 return false;
}
if (e.clientX > findPosX(o)+o.offsetWidth || e.clientX < findPosX(o) || e.clientY < findPosY(o) || e.clientY > findPosY(o) + o.offsetHeight) {
o.style.display = 'none';
document.body.onmouseout = null;
}
};
}

function changeState() {
var msg = ajax.request.responseText;
var o = getObj('menu_userinfo_more');
if (msg == 1){
getObj('stealth').className = '';
getObj('iconimg').title = '隐身';
getObj('online_state').innerHTML = '<img src="$imgpath/$stylepath/head-ol.gif" align="absmiddle" /> 我要上线';
}else{
getObj('stealth').className = 'hide';
getObj('iconimg').title = '在线';
getObj('online_state').innerHTML = '<img src="$imgpath/$stylepath/stealth.gif" align="absmiddle" /> 我要隐身';
}
}
</script>
						</td>
						<td><span id="td_skin" class="fr" title="风格切换"><img src="$imgpath/pwicon/style.gif" style="cursor:pointer;"/></span></td>
					</tr>
<!--
EOT;
}print <<<EOT
-->
				</table>
<div id="menu_userinfo_more" class="menu cc menu-post" style="z-index:1002;left:8px;top:32px;display:none;">
	<div class="menu-b">
		<ul class="menu-half cc" style="width:16.5em;">
<!--
EOT;
if ($_G['allowhide']) {print <<<EOT
-->
			<li><a style="cursor:pointer;" onclick="ajax.send('pw_ajax.php?action=changestate','',changeState)" id="online_state">
<!--
EOT;
if (GetCookie('hideid') == 1) {print <<<EOT
-->
				<img src="$imgpath/$stylepath/head-ol.gif" align="absmiddle" /> <span class="s1">我要上线</span>
<!--
EOT;
} else {print <<<EOT
-->
				<img src="$imgpath/$stylepath/stealth.gif" align="absmiddle" /> <span class="s1">我要隐身</span>
<!--
EOT;
}print <<<EOT
-->
				</a></li>
<!--
EOT;
}print <<<EOT
-->
			<li><span class="s1 fl" style="padding:6px 8px 2px;">$gp_grouptitle</span></li>
		</ul>
		<ul class="menu-half cc" style="width:16.5em;">
			<li><span class="fl" style="padding:4px 8px;">帖子:$winddb[postnum]</span></li>
			<li><span class="fl" style="padding:4px 8px;">今日: $winddb[todaypost]</span></li>
			<li><a href="u.php?action=topic">我的主题</a></li>
			<li><a href="u.php?action=post">我的回复</a></li>
			<li><a href="u.php?action=favor">我的收藏</a></li>
			<li><a href="u.php?action=feed">好友近况</a></li>
<!--
EOT;
if (SCR == 'index' && ($groupid == 3 || $groupid == 4)) {print <<<EOT
-->
			<li><a style="cursor:pointer" onclick="if (typeof MgMode == 'function') {mgm.showMenu();} else {loadjs('js/mgmode.js');}">可视化布局</a></li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
		<div style="line-height:2;padding-left:8px;">
			<!--$db_rvrcname: <span class="s2">$userrvrc $db_rvrcunit</span><br />
			$db_moneyname: <span class="s3">$winddb[money] $db_moneyunit</span><br />
			$db_creditname: <span class="s3">$winddb[credit] $db_creditunit</span><br />
			最后登录: {$lastlodate}-->
			登录IP: $onlineip
		</div>
	</div>
</div>
			</div>
			<ul id="nav-global">
				<li $pwNavCurStyle_home ><a href="$index_url">首页</a></li>
<!--
EOT;
foreach($db_modes as $key=>$value){
if (!$value['ifopen'] || $defaultMode==$key) continue;
$tmpStyle = ${'pwNavCurStyle_'.$key};
if ($db_modedomain[$key]) {
	$this_url = strpos($db_modedomain[$key],'http://')===false ? 'http://'.$db_modedomain[$key]:$db_modedomain[$key];
} else {
	$this_url = $db_bbsurl.'/?m='.$key;
}
print <<<EOT
-->
				<li $tmpStyle ><a href="$this_url">$value[title]</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
			<span id="nav-bbs">
<!--
EOT;
if($_G[allowsort]){print <<<EOT
-->
			<a id="td_sort" href="sort.php">统计排行</a>
<!--
EOT;
}elseif($_G['allowmember']){print <<<EOT
-->
			<a href="member.php" id="h_member">会员</a>
<!--
EOT;
}if($_G['show']){print <<<EOT
-->
			<a href="show.php" id="h_show">展区</a>
<!--
EOT;
}print <<<EOT
-->
			<a href="search.php" id="h_search">搜索</a> <a style="cursor:pointer;" id="td_hack">社区服务</a>
<!--
EOT;
foreach($db_hackdb as $key=>$hack){
if($hack[2]=='2' && file_exists(R_P."hack/$key/index.php")){print <<<EOT
-->
			<a href="hack.php?H_name=$hack[1]">$hack[0]</a>
<!--
EOT;
}}if($db_ifbookinfo){
$rawbbsname=rawurlencode($db_bbsname);
$rawbbsurl=rawurlencode($db_bbsurl);
$rawuser=rawurlencode($windid);
$pushurl="http://push.phpwind.com/book.php?tocharset=$db_charset&bbsname=$rawbbsname&bbsurl=$rawbbsurl&user=$rawuser";
if($tid){
$rawtitle=rawurlencode($subject);
print <<<EOT
-->
			<a href="$pushurl&tid=$tid&title=$rawtitle" target="_blank">订阅本帖更新</a>
<!--
EOT;
}elseif($fid){
$rawforumname=rawurlencode($forumname);
print <<<EOT
-->
			<a href="$pushurl&fid=$fid&forumname=$rawforumname" target="_blank">订阅本版更新</a>
<!--
EOT;
}else{print <<<EOT
-->
			<a href="$pushurl" target="_blank">订阅全站新帖</a>
<!--
EOT;
}}print <<<EOT
-->
			<a href="faq.php">帮助</a>
			</span>
		</div>
	</div>
</div>
<div id="menu_hack" class="menu menu-post cc" style="display:none;">
	<div class="menu-b" style="width:9em;">
		<p>
<!--
EOT;
foreach ($db_hackdb as $key => $hack) {
if ($hack[2]=='1' && file_exists(R_P."hack/$key/index.php")) {print <<<EOT
-->
			<a href="hack.php?H_name=$hack[1]">$hack[0]</a>
<!--
EOT;
}}print <<<EOT
-->
		</p>
	</div>
</div>
<!--
EOT;
if($db_menu%2 == 1){print <<<EOT
-->
<div id="menu_sort" class="menu menu-post cc" style="display:none;">
	<div class="menu-b">
		<ul class="menu-half cc" style="width:16em;">
			<li><a href="sort.php">基本信息</a></li>
<!--
EOT;
if($db_ipstates){print <<<EOT
-->
			<li><a href="sort.php?action=ipstate">到访IP统计</a></li>
<!--
EOT;
}print <<<EOT
-->
			<li><a href="sort.php?action=team">管理团队</a></li>
			<li><a href="sort.php?action=admin">管理操作</a></li>
			<li><a href="sort.php?action=online">在线会员</a></li>
			<li><a href="sort.php?action=member">会员排行</a></li>
			<li><a href="sort.php?action=forum">版块排行</a></li>
			<li><a href="sort.php?action=article">帖子排行</a></li>
			<li><a href="push.php?fid=$fid">推荐排行</a></li>
<!--
EOT;
if($db_iftag){print <<<EOT
-->
			<li><a href="job.php?action=taglist">标签排行</a></li>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($_G['allowsort'] && $_G['allowmember']) {print <<<EOT
-->
			<li><a href="member.php">会员列表</a></li>
<!--
EOT;
}print<<<EOT
-->
		</ul>
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<div id="menu_skin" class="menu menu-post cc" style="display:none;">
	<div class="menu-b" style="width:9em;">
<!--
EOT;
foreach($db_skindb as $key=>$val){print <<<EOT
-->
		<a href="{$s_url}skinco=$key">$val</a>
<!--
EOT;
}print <<<EOT
-->
	</div>
</div>

<!--
EOT;
if (!empty($shortcutforum) && $db_toolbar == 0) {print <<<EOT
-->
<div id="menu_shortcut" class="menu menu-post cc" style="display:none;">
	<div class="menu-b" style="width:9em;width:150px;">
<!--
EOT;
foreach ($shortcutforum as $key => $value) {print <<<EOT
-->
		<a href="thread.php?fid=$key">$value</a>
<!--
EOT;
}print <<<EOT
-->
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<div class="main-wrap">
<div id="main">
<!--
EOT;
if ($navbanner_ad) {print <<<EOT
-->
<div class="tac" style="margin:.5em 0 0;">$navbanner_ad</div>
<!--
EOT;
}?>-->
